
from globally import LogFilePath_assignment, LogFilePath_exec
import logging

class Log:
    @staticmethod
    def LOG_Assisgnment(level, info):
        print("2")
        logging.basicConfig(filename=LogFilePath_assignment, level=logging.INFO, encoding='UTF-8', filemode='a')
        logger = logging.getLogger(__name__)
        if type(info) is str:
            logger.info(info)
        if type(info) is list:
            for line in info:
                logger.info(line)

    @staticmethod
    def LOG_Exec(info):
        logging.basicConfig(filename=LogFilePath_exec, level=logging.INFO, encoding='UTF-8', filemode='a')
        logger = logging.getLogger(__name__)
        if type(info) is str:
            logger.info(info)
        if type(info) is list:
            for line in info:
                logger.info(line)

